#!/bin/sh

export JAVA_HOME=$JAVA_HOME
PATH=$JAVA_HOME/bin:${PATH}

M_CLASSPATH=
for i in `ls ./lib/*.jar`
do
  M_CLASSPATH=${M_CLASSPATH}:${i}
done
for i in `ls ./mephisto/*.jar`
do
 M_CLASSPATH=${M_CLASSPATH}:${i}
done

java -cp ".:${M_CLASSPATH}" mephisto.rest.RestApplication
